import 'package:flutter_nb_net/flutter_net.dart';

class RemoteSettingListResp extends BaseNetModel {
  int? code;
  String? msg;
  List<RemoteSettingData>? data;

  RemoteSettingListResp({this.code, this.msg, this.data});

  @override
  fromJson(Map<String, dynamic> json) {
    return RemoteSettingListResp(
      code: json['code'],
      msg: json['msg'],
      data: json['data'] != null ? List<RemoteSettingData>.from(json['data'].map((x) => RemoteSettingData().fromJson(x))) : null,
    );
  }
}

class RemoteSettingData extends BaseNetModel {
  int? cmdId;
  String? cmdCode;
  String? cmdName;
  String? cmdFormat;
  String? introduction;
  String? remark;
  String? cmdDesc;

  RemoteSettingData({this.cmdId, this.cmdCode, this.cmdName, this.cmdFormat, this.introduction, this.remark, this.cmdDesc});

  @override
  fromJson(Map<String, dynamic> json) {
    return RemoteSettingData(
      cmdId: json['cmdId'],
      cmdCode: json['cmdCode'],
      cmdName: json['cmdName'],
      cmdFormat: json['cmdFormat'],
      introduction: json['introduction'],
      remark: json['remark'],
      cmdDesc: json['cmdDesc'],
    );
  }

  toJson() {
    return {
      'cmdId': cmdId,
      'cmdCode': cmdCode,
      'cmdName': cmdName,
      'cmdFormat': cmdFormat,
      'introduction': introduction,
      'remark': remark,
      'cmdDesc': cmdDesc,
    };
  }
}